<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<html>
<body>
<link rel="stylesheet" type="text/css" href="<%=application.getContextPath() %>/css/validator.css" />
<script language="javascript">
	$().ready( function() {
	});
</script>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<br />
<h1>选单维护管理<br/>
<div class="f-link">
	<yaodian100:checkPermission permissions="GROUP_A-50-100-100"><a href="add.do">新增选单维护</a></yaodian100:checkPermission>
	<a href="http://10.0.1.1/jinwei/menuInit.html" target="_blank">更新menu(更新后请重新登入)</a>
</div>
</h1>
<div class="data-form"><s:form action="listYekmobile.do" method="post">
	<b>Menu Key：</b>
	<input name="menuKeyParam" type="text" id="menuKeyParam"
		value="${menuKeyParam}" size="20" maxlength="20" readonly="readonly">
	<input type="button" value="搜寻" onClick="this.form.submit();" />
</s:form></div>
<br />
<s:if test="menus.size > 0">
	<yaodian100:pageutil link="listYekmobile.do" pagerObj="${pager}" />
	<table class="tb-1" width="100%">
		<thead>
			<tr>
				<th>Menu Key</th>
				<th>Menu Desc</th>
				<th>Menu Type</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${menus}" var="menu" varStatus="rows_index">
				<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''} tdDesc">
					<td><a href="edit.do?menuKey=${menu.key}" />${menu.key}</a></td>
					<td>${menu.description}</td>
					<td>${menu.type}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<yaodian100:pageutil link="list.do" pagerObj="${pager}" />
</s:if>
</body>
</html>
